Added 201, 202, 405, 409, 429 and 501 http status codes in code_header() function, which may be useful for REST API.