ErrorResponse

api.ErrorResponse
final case class ErrorResponse(error: String, message: String)

Represents a standard error response returned by the server in JSON format.

This case class is used to encapsulate error details, making it easy to serialise into a consistent JSON structure for HTTP error responses.

Value parameters

error

A string identifying the type of error (e.g., "NotFound", "BadRequest").

message

A descriptive message providing additional details about the error.

Attributes

Source
ErrorHandler.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product