Helper for services that need to retrieve an OAuth2Token
final case classProblem(type: String, title: Option[String], status: Option[Int] = None, detail: Option[String] = None, instance: Option[String] = None, extraFields: JsonObject = JsonObject.empty) extends Product with Serializable
Problem Details for HTTP APIs
Problem Details for HTTP APIs
title
A short, human-readable summary of the problem
type. It SHOULD NOT change from occurrence to occurrence of the
problem, except for purposes of localization (e.g., using
proactive content negotiation; se
status
The HTTP status code ([RFC7231], Section 6)
generated by the origin server for this occurrence of the problem.
detail
A human-readable explanation specific to this
occurrence of the problem.
instance
A URI reference that identifies the specific
occurrence of the problem. It may or may not yield further
information if dereferenced.
extraFields
Any extra fields placed into the problem object that
aren't part of the standard
Problem Details for HTTP APIs
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; se
The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
Any extra fields placed into the problem object that aren't part of the standard
https://tools.ietf.org/html/rfc7807