Answer the question
In order to leave comments, you need to log in
How to make 401 exception?
Hello!
Faced a problem, you need the server to give 401 and 500 errors in json
with 500 coped:
rescue_from Exception do
# render json ...
end
Answer the question
In order to leave comments, you need to log in
Do you need to render JSON with a 401 code?render json, status: 401
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question