Change status code Rails
问题 I am in a really bad situation. I am using Volley on an Android application with Ruby on Rails JSON API. Problem is there is a bug with Volley making it unable to correctly identify anything with staus 401. Basically, whenever there is a 401 status, the NetworkResponse is null and VolleyError is of type NoConnectionError. I have searched a lot and the only way around it is to return 403 instead of 401 which can be identified correctly by Volley. How can I change status codes on all responses