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
An infrastructure logic calls an external service that fails, so the consumer has to receive 502 'Bad Gateway' or 503 'Service Unavailable' HTTP status code (see this SO discussion on the preferred HTTP code).
The library containing the infrastructure code doesn't have a dependency on Microsoft.AspNetCore.App, so returning IDomainResult would be handy.
Task
Add additional extension method along with DomainOperationStatus state:
ErrorServiceUnavailable that gets automatically converted to HTTP code 503 'Service Unavailable' .
The text was updated successfully, but these errors were encountered:
Use-case:
502
'Bad Gateway' or503
'Service Unavailable' HTTP status code (see this SO discussion on the preferred HTTP code).Microsoft.AspNetCore.App
, so returningIDomainResult
would be handy.Task
Add additional extension method along with
DomainOperationStatus
state:ErrorServiceUnavailable
that gets automatically converted to HTTP code503
'Service Unavailable' .The text was updated successfully, but these errors were encountered: