Skip to content

Commit

Permalink
Fix wrong range in HTTP redirection error. (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Renato Rodrigues authored Jun 18, 2018
1 parent cf86fde commit 5d7c4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Network/HTTP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public enum HTTP {
switch statusCode {
case 100...199: return .informational(statusCode)
case 200...299: return .success(statusCode)
case 200...399: return .redirection(statusCode)
case 300...399: return .redirection(statusCode)
case 400...499: return .clientError(statusCode)
case 500...599: return .serverError(statusCode)
default: return .unknownError(statusCode)
Expand Down

0 comments on commit 5d7c4d2

Please sign in to comment.