fixed wrong http return code