swagger-api/swagger-codegen

[Swift] Getting 'CANCELLED' for incorrect credentials instead of 401

開放

#3,097 建立於 2016年6月9日

 (3 則留言) (0 個反應) (0 位負責人)HTML (5,474 個分叉)batch import
Client: SwiftIssue: Bughelp wanted

倉庫指標

星標
 (12,701 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Description

I am building an app that has a sign in using http basic authentication. If the credentials are correct, it works fine. However for invalid credentials, I cannot access the status code (to test for 401) and the errors localizedDescription shows: cancelled

Swagger-codegen version

generated online

Swagger declaration file content or url
Command line used for generation
Steps to reproduce

Log in using HTTP Basic auth with incorrect credentials

Related issues
Suggest a Fix

pass the status code even if there is a failure.

貢獻者指南