Add logging on HTTP 500
Fixed failure on unknown file extension