Error handling in MVC mapper functions #1187
Labels
good first issue
A user wrote a good first issue with clear instructions
⌨️ prio:normal
🚀 status:implemented
🪶 type: feature
Milestone
Consider the following example:
There is no way to process e.g. JSON conversion errors here. What about supporting second
error
return argument (orint
HTTP error code), just like in normal mapped MVC methods, e.g.:when err != nil, status code 400 (+ err.Error() as body) should be sent as HTTP response and MVC method(s) not called.
The text was updated successfully, but these errors were encountered: