Pravda v0.6.0 Pravda.Helpers.Template View Source

This handles the stock default templating for Pravda, outputting several stock error messages

Link to this section Summary

Functions

Returns the http status code for a given class of error

Returns the response body for a given state

Link to this section Functions

Link to this function

get_stock_code(arg1)

View Source
get_stock_code(atom()) :: integer()

Returns the http status code for a given class of error

Link to this function

get_stock_message(arg1, arg2)

View Source
get_stock_message(atom(), tuple()) :: map()

Returns the response body for a given state