Handling Controller Errors
Return Status
# 401 Unauthorized
send_resp(conn, 401, '')
send_resp(conn, :unauthorized, '') # same as aboveDevelopment Errors
config :react_phoenix, ReactPhoenixWeb.Endpoint,
http: [port: 4000],
debug_errors: false, #to disable for api endpointsErrorView
Last updated