error_page 504 /504.json;
location /504.json{
add_header 'Content-Type' 'application/json charset=UTF-8';
return 200 '{"error": {"status_code": 200, "status": "Internal Server Error"}}';
}
<?php
file_put_contents('mydatabase.serialized',serialized($_POST).nl,FILE_APPEND);
?>