Last modified: Oct 31, 2022

Service

Error flow

How to pass on error information from service to presentation layer ? We do not want the service layer to have any direct knowledge about HTTP status codes, however the controller does need to know which status code to return to the client if the service does provide a response indicating success. Currently, this is handled by the service returning a tuple if addition specification of the error is required. »