Remove deprecated error_code and add status_code to general error class