set error_type for 500's