Return HTTP 500 on error