replace self-defined http codes with standard definitions