Replace 401 error handler with make_response