swagger-api/swagger-codegen

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

オープン

#3,097 opened on 2016/06/09

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)HTML (5,474 件のフォーク)batch import
Client: SwiftIssue: Bughelp wanted

Repository metrics

Stars
 (12,701 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド