Error handler will return status, headers and body