changed error message - added status_code