adjust http return code