Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am alexcom on github.
  • I am akravets84 (https://keybase.io/akravets84) on keybase.
  • I have a public key ASBWuogwldQDAAkmPZlkgtRnAQSuhH_pC61qaW3Zr259igo

To claim this, I am signing this object:

@alexcom
alexcom / custom-error-page
Created May 11, 2017 14:16 — forked from simlegate/custom-error-page
Nginx return custom json
error_page 400 404 405 =200 @40*_json;
location @40*_json {
default_type application/json;
return 200 '{"code":"1", "message": "Not Found"}';
}
error_page 500 502 503 504 =200 @50*_json;
location @50*_json {
{
"bidid": "c13fcffe-e331-47e6-b362-925f973c40df",
"seatbid": [
{
"bid": [
{
"id": "0",
"price": 0,
"crid": "4220598",
"w": 468,