Add 501 reponse code.
Switch MIME type & check path nullness.
Remove whitespace in Makefile.