module
PlaceOS::Api::Utils::Responders
Direct including types
Defined in:
placeos-rest-api/utilities/responders.crInstance Method Summary
-
#handle_execute_error(error : Driver::Proxy::RemoteDriver::Error, respond : Bool = true)
RemoteDriver Execute error responder
-
#render_error(status : HTTP::Status, message : String | Nil, **additional)
Renders API error messages in a consistent format
Instance Method Detail
def handle_execute_error(error : Driver::Proxy::RemoteDriver::Error, respond : Bool = true)
#
RemoteDriver Execute error responder
With respond = true
, method acts as a logging function
def render_error(status : HTTP::Status, message : String | Nil, **additional)
#
Renders API error messages in a consistent format