If the exception class's names match exactly the HTTP status code names then we have no issues. The error code just helps uniquely identifying and looking up the error. But it's not strictly necessary.