Comments (2)
- 这个确实是REST的一般性实践吧,通过HTTP Status Code而非某个字段来表示响应的状态。这在一些文章中也有阐述:http://blog.zenika.com/index.php?post/2011/05/18/Error-handling-with-REST 。与Web Server的冲突应该是运维配置的问题
- 如果Http Status Code能代表错误代码,在业务上继续返回一个错误代码字段的作用是……?个人理解这反而会破坏整个响应的语义性并加大解析难度,不过可以讨论
广告管家现有的方案是采用标准的REST化,使用Http Status Code表示响应成功与否及错误类型,响应体只包含数据
from ub-ria.
- 运维配置会带来不必要的麻烦
- 理解1套errorcode总比理解2套errorcode要简单
from ub-ria.
Related Issues (20)
- UB-RIA
- ub-ria文档内容需求汇总 HOT 3
- UIView类中增加addUIExtensions方法的需求 HOT 2
- [FormView#getEntity]增加对嵌套属性名称的解构 HOT 2
- 3.0 Breaking changes HOT 4
- 增加一个 ControlProvider工厂获取控件类 HOT 6
- List的批量更新提示流程有问题 HOT 1
- 【ub-ria升级需求汇总】取消“抽屉弹出”的强制交互 HOT 12
- 【ub-ria升级需求汇总】取消“表单取消操作的确认弹层”的强制交互 HOT 2
- 【ub-ria升级需求汇总】列表中筛选相关 HOT 2
- 【ub-ria升级需求汇总】取消“布局变化监听”的强制配置 HOT 1
- 生成HTML的内容均使用模板来实现,减少JavaScript拼接字符串
- 移除所有样式
- BaseModel中的Typo
- ListView.js getSearchArgs HOT 7
- 有关defaultArgs的设计问题 HOT 2
- 修改列表行内command事件的处理方式
- 新的数据加载配置方法 HOT 2
- ListAction的查询过程可能丢失部分参数 HOT 8
- tpl.js支持ie10、9、8跨域加载模板 HOT 3
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 ub-ria.