update HTTP status code with POST/DELETE/PUT/GET methods