ApiCommons.Template (ApiCommons v0.1.0) View Source

Link to this section Summary

Functions

Generate a json error response for a single error message.

Generate a json error response out of a list of errors.

Link to this section Functions

Link to this function

default_json_errors(error_codes)

View Source
Link to this function

error(status_code, name, message)

View Source

Generate a json error response for a single error message.

Parameter

Returns: Map

Generate a json error response out of a list of errors.

Parameter

Returns: Map