# Functions

AlreadyExists dumps a simple "already exists" message response (409) in the gin context.
AuthBadScheme dumps a simple "bad scheme" message response (400) in the gin context.
AuthForbidden dumps a simple "forbidden" message response (403) in the gin context.
AuthMissing dumps a simple "missing header" message response (401) in the gin context.
AuthNotFound dumps a simple "not found" message response (401, for auth) in the gin context.
AuthSyntaxError dumps a simple "syntax error" message response (400) in the gin context.
Created dumps a simple "created" message with the id of the created object.
DuplicateKey dumps a "duplicate key" message response (409) with the attempted key combination.
FindOneOperationError is a helper to render an error for a MongoDB's FindOne operation on a collection.
InternalError dumps a simple "internal error" message response (500) in the gin context.
InvalidFormat dumps an "invalid format" message response (400) in the gin context, with the errors that must flow to the user.
MethodNotAllowed dumps a simple "method not allowed" message response (405) in the gin context.
NotFound dumps a simple "not found" message response (404) in the gin context.
Ok dumps a simple "ok" message response (200) in the gin context.
OkWith dumps a 200 message with a given body.
UnexpectedFormat dumps a simple "unexpected format" message response (400) in the gin context.