View Source Solicit.ResponseError (solicit v1.3.3)
An error in the JSON body of an HTTP response.
Summary
Functions
Given an Ecto Changeset with errors, convert the errors into a list of ResponseError objects.
Given a keyword list entry, attempt to turn it into an ResponseError. Assumption: All Changeset errors are going to relate to a specific database field.
Types
Functions
@spec from_changeset(Ecto.Changeset.t(), String.t() | nil) :: [t()]
Given an Ecto Changeset with errors, convert the errors into a list of ResponseError objects.
Given a keyword list entry, attempt to turn it into an ResponseError. Assumption: All Changeset errors are going to relate to a specific database field.
Link to this function
request_entity_too_large(description \\ "Request entity is too large.")
View Source
Link to this function
unauthorized(description \\ "Must include valid Authorization credentials")
View Source
Link to this function