class Amber::Schema::RequestParseError

Overview

A request could not be decoded. These errors are reported as HTTP 400, separately from structurally valid input that fails a schema (HTTP 422).

Direct Known Subclasses

Defined in:

amber/schema/errors.cr

Constructors

Instance Method Summary

Instance methods inherited from class Amber::Schema::Error

code : String code, details : Hash(String, JSON::Any) | Nil details, field : String field, to_h to_h

Constructor methods inherited from class Amber::Schema::Error

new(field : String, message : String, code : String, details : Hash(String, JSON::Any) | Nil = nil) new

Constructor Detail

def self.new(message : String, code : String = "invalid_request_body", http_status : Int32 = 400) #

[View source]

Instance Method Detail

def http_status : Int32 #

[View source]