trolie / spec

Transmission Ratings and Operating Limits Information Exchange
https://trolie.energy/
Other
2 stars 2 forks source link

Apply standard for "Problems" in error reporting #25

Closed getorymckeag closed 5 months ago

getorymckeag commented 5 months ago

Consider changing problem reporting for API errors to use the standard at https://www.rfc-editor.org/rfc/rfc7807

caindy commented 5 months ago

I fully support this. I'll open a PR to add it as the sole response for all 400 and 422 responses.

caindy commented 5 months ago

Let's adopt the newer https://www.rfc-editor.org/rfc/rfc9457 which obsoletes 7807.

caindy commented 5 months ago

In my hurry to get this done, I did not apply the change to all the 400 Bad Request responses.

caindy commented 5 months ago

Resolved in #32