update error code response

Include selection and set of http error code