added status code to error message