# Functions

Error is a shortcut for converting custom error types into appropriate response codes and JSON.
JSON is a shortcut for writing JSON api responses.
JSONorErr is a simple helper to handle the last `if err != nil` check in a handler.
Success writes a generic { success: true } response.
SuccessOrErr is a simple helper to handle the last `if err != nil` check in a handler.