setting the result status codes, check the existance of order on GET