support httpstatus on the error object