module PlaceOS::Api::Utils::Responders

Direct including types

Defined in:

placeos-rest-api/utilities/responders.cr

Instance Method Summary

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


[View source]
def render_error(status : HTTP::Status, message : String | Nil, **additional) #

Renders API error messages in a consistent format


[View source]