swagger-api/swagger-codegen

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

Open

#3097 aperta il 9 giu 2016

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Client: SwiftIssue: Bughelp wanted

Metriche repository

Star
 (12.701 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor