View Source Solicit.ResponseError (solicit v1.3.2)
An error in the JSON body of an HTTP response.
Link to this section 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.
Link to this section Types
Link to this section 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