Skip to content

Instantly share code, notes, and snippets.

@kana-sama
Last active December 22, 2016 01:38
Show Gist options
  • Save kana-sama/f28245c102ed25f9da83d95fee41426d to your computer and use it in GitHub Desktop.
Save kana-sama/f28245c102ed25f9da83d95fee41426d to your computer and use it in GitHub Desktop.
@statuses [
ok: 200,
bad_request: 400,
not_found: 404
]
def put_status(conn, status) when is_atom(status) and not is_nil(status) do
put_status(conn, @statuses[status])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment