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
We should make sure that all errors that are returned from the /v2 endpoints are following this format. For that, we can implement some middleware, e.g. use("/v2", errorHandlingMiddleware) that matches unknown / uncaught errors to the new interface. This should also catch the ones returned by safeHandler. We should also ensure that validation errors follow this format. We might need to adapt our genericErrorHandler from api v1.
We will also need to define the custom error codes.
The text was updated successfully, but these errors were encountered:
In the API v2 design we created the GenericErrorResponse interface for all errors returned by the new API:
We should make sure that all errors that are returned from the
/v2
endpoints are following this format. For that, we can implement some middleware, e.g.use("/v2", errorHandlingMiddleware)
that matches unknown / uncaught errors to the new interface. This should also catch the ones returned bysafeHandler
. We should also ensure that validation errors follow this format. We might need to adapt ourgenericErrorHandler
from api v1.We will also need to define the custom error codes.
The text was updated successfully, but these errors were encountered: