Raised or returned when a call is made to a service that has not been started
with ExternalService.start/2.
This is an Errata infrastructure error. The same
value is returned in an {:error, error} tuple by ExternalService.call/3 and
raised by ExternalService.call!/3. Its :context contains the :service
(the fuse name) that was not started.
Unlike the other errors, this one indicates a programming/configuration mistake
rather than a transient infrastructure failure, so its http_status/1 is 500.
Summary
Functions
Returns the HTTP status code associated with this error (503 by default).
Types
@type t() :: Errata.infrastructure_error()
Functions
@spec http_status(Errata.error()) :: non_neg_integer()
Returns the HTTP status code associated with this error (503 by default).
The default is derived from the error's kind, or set via the :http_status
option. Override this function to compute a status from the error's :reason
or :context. See also Errata.http_status/1.