Skip to content

Instantly share code, notes, and snippets.

@inlinestyle
Last active December 22, 2015 07:58
Show Gist options
  • Save inlinestyle/6441248 to your computer and use it in GitHub Desktop.
Save inlinestyle/6441248 to your computer and use it in GitHub Desktop.
app.all '/push/*', (request, response) ->
response.json 503, {}
app.get '/api/v2/user_messages', (request, response) ->
response.json 200, {messages: [{message_heading: 'Scheduled Maintenance', message_text: 'We are currently conducting maintenance'}]} # in-app messaging!
app.all '/api/*', (request, response) ->
response.json 503, {}
app.all '/*', (request, response) ->
response.setHeader 'Retry-After', '3600'
response.send 503, render503Page() # renders html for web 503 page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment