For example, this allows you to add this code to the JSON response so your app can display a custom screen or message when certain kinds of errors happen.
I updated every throw_error_status and set_response_error_status to set the reason code, with special handling for the login and password requirements.
The error reason code is added to the JSON response in spec_helper.rb so we can match it in tests.
Tests are passing locally using PostgreSQL.
For example, this allows you to add this code to the JSON response so your app can display a custom screen or message when certain kinds of errors happen.
I updated every
throw_error_status
andset_response_error_status
to set the reason code, with special handling for the login and password requirements.The error reason code is added to the JSON response in
spec_helper.rb
so we can match it in tests. Tests are passing locally using PostgreSQL.