Add HTTP status code 500

It seems only natural to me to send error code 500 by default when an internal error happens.