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
Currently, the code returned is HTTP 500 on any response that is not SUCCESS or CLIENT_INVALID_PARAMETERS. So returning any of the other OCPI errors will result in an HTTP 500 error.
The documentation states that
If a request is syntactically valid JSON and addresses an existing resource, a HTTP error MUST NOT be returned. Those requests are supposed to have reached the OCPI layer.
The HTTP response code is automated based on the OCPI response code:
ocpi-toolkit/ocpi-toolkit-2.2.1/src/main/kotlin/com/izivia/ocpi/toolkit/common/OcpiResponseBody.kt
Lines 124 to 128 in 4642efb
Currently, the code returned is HTTP 500 on any response that is not
SUCCESS
orCLIENT_INVALID_PARAMETERS
. So returning any of the other OCPI errors will result in an HTTP 500 error.The documentation states that
so all these responses should be and HTTP 200.
I've asked for my thoughts on this in the OCPI Slack: https://ocpi.slack.com/archives/C0S64NZJQ/p1707299786355599
and confirmed by one of the authors of the OCPI documentation 😅
Maybe related with #65
The text was updated successfully, but these errors were encountered: