Add extra 4xx response codes for proper handling

Only 405 Method not allowed, 406 Not acceptable, 409 Conflict, and 410 Gone have been added to the list.