Skip to content

Instantly share code, notes, and snippets.

@pperehozhih
Created August 4, 2017 11:06
Show Gist options
  • Save pperehozhih/8d3bc59a2a0ac832846a40cc4bb155e5 to your computer and use it in GitHub Desktop.
Save pperehozhih/8d3bc59a2a0ac832846a40cc4bb155e5 to your computer and use it in GitHub Desktop.
custom response
error_page 400 403 404 405 =200 @40*_xml;
location @40*_xml {
default_type application/xml;
return 200 '<country  technical_work=\'{"notify_start":1501834800,"work_start":1501835400,"work_end":1501836300}\' server_time=\'1501835409\'>
          <field></field>
          <messages>
            <message code=\'technical_works\' />
          </messages>
        </country>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment