implement exceptions for server error code