mavlink / mavlink2rest

mavlink2rest creates a REST server that provides mavlink information from a mavlink source
MIT License
89 stars 28 forks source link

More semantic status codes on failure #70

Closed rotu closed 1 year ago

rotu commented 1 year ago

Previously, any error failed with code 404, regardless of reason. Now, 404 NOT FOUND is only returned if an endpoint or file doesn't exist.

Trying to send a malformed message or request an example of a non-existent message type should now report a 400 BAD REQUEST, and a failure to send a message should report a 500 INTERNAL SERVER ERROR.

fix #69