Comments (2)
Http1.1定义了100-505的状态码,HttpClient在实现的时候,约束了状态码的范围为[0-999],不在范围内的就认为是服务端不遵循http,并默认将[200-299]的状态码解释为成功的状态。简单说,HttpStatusCode是由http定义的,不是业务上可以自行随便增加定义的。
from webapiclient.
嗯,明白了,谢谢
from webapiclient.
Related Issues (20)
- The relative expiration value must be positive. (Parameter 'AbsoluteExpirationRelativeToNow') Actual value was -00:00:10. HOT 1
- 是否支持失败重试+自定义重试策略 HOT 5
- 是否考虑支持接口转发的功能 HOT 5
- .net 7.0 Console程序怎么使用该组件? HOT 2
- .net 7.0的Console程序提示不支持将ContentType为 text/html 的内容转换为对象 HOT 3
- 生成上传文件代理时,找不到FileParameter参数。
- 参数为实体类时是否有Attribute可用于自定义字段名 HOT 4
- TimeOut action属性和Param属性 设置之后都不起作用 无论设置多少都是60秒超时 HOT 2
- WriteLog方法BUG。 HOT 2
- 如何处理超时异常 HOT 2
- 请问 HttpApiClient.Create<T>() 还支持吗? HOT 1
- 请求执行时出现SocketException,是否考虑将HttpContext也抛出
- 支持添加自定义请求头吗? HOT 5
- HttpRequestException.StatusCode 错误 HOT 2
- 重写IsUnauthorizedAsync读取Body判断Status HOT 4
- CancellationTokenTypeAttribute类变量用错了
- 如何在ApiReturnAttribute进行重发? HOT 2
- 偶尔抛出异常,原因不明,抛出异常的位置:JsonNetReturnAttribute; System.ObjectDisposedException: Cannot access a disposed object. HOT 1
- 调用的地方比较多,有办法在LoggingFilter中获取到调用的信息 HOT 1
- 使用时报了400的错误。我不太确定我哪一步出现问题 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapiclient.