Return JSON for 404 error instead of html

Justin Dorfman jdorfman at netdna.com
Tue May 13 16:06:45 UTC 2014


application/octet-stream it is =p


Regards,

Justin Dorfman <http://www.twitter.com/jdorfman>

Director of Developer Relations
MaxCDN <http://twitter.com/MaxCDNDeveloper>

Email / IM: jdorfman at maxcdn.com
Mobile: 818.485.1458
Twitter: @jdorfman <http://www.twitter.com/jdorfman>


On Tue, May 13, 2014 at 8:53 AM, Valentin V. Bartenev <vbart at nginx.com>wrote:

> On Tuesday 13 May 2014 08:48:50 Justin Dorfman wrote:
> > Out of curiosity, would the mime/content type show up as application/json
> > or text/plain?
> >
>
> It depends on the default_type directive:
> http://nginx.org/r/default_type
>
>   wbr, Valentin V. Bartenev
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140513/1f49b589/attachment.html>


More information about the nginx mailing list