Instead of using integers , use constants defined in HTTPStatus class