You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and if the code is not in the list a BadResponseException is thrown.
This means that there is no way to use custom codes (like in our case), not even to mention that the list is far from the full list of available standard codes.
I see the intention of this list: to provide proper translation mechanism for the codes, however it should not be used for validation, especially when these is no easy way around it.
The text was updated successfully, but these errors were encountered:
When response object is created constructor validates response code against hardcoded list:
Guzzle\Http\Message\Response
and if the code is not in the list a BadResponseException is thrown.
This means that there is no way to use custom codes (like in our case), not even to mention that the list is far from the full list of available standard codes.
I see the intention of this list: to provide proper translation mechanism for the codes, however it should not be used for validation, especially when these is no easy way around it.
The text was updated successfully, but these errors were encountered: