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
Exceptions in namespace WoohooLabs\Yin\JsonApi\Exception don't have correct codes, they all use default code 0, without the possibility of overriding. This makes it harder to handle these errors. For example, FullReplacementProhibited should have code 403.
Libraries like jsonapi bundle, that is commonly used with yours, depend on the code to format errors correctly, so it would be nice to have this fixed.
I could make a PR containing the necessary changes if you agree.
The text was updated successfully, but these errors were encountered:
Hi!
Exceptions in namespace
WoohooLabs\Yin\JsonApi\Exception
don't have correct codes, they all use default code 0, without the possibility of overriding. This makes it harder to handle these errors. For example,FullReplacementProhibited
should have code 403.Libraries like jsonapi bundle, that is commonly used with yours, depend on the code to format errors correctly, so it would be nice to have this fixed.
I could make a PR containing the necessary changes if you agree.
The text was updated successfully, but these errors were encountered: