所有API方法均使用标准HTTP响应代码来表示成功或失败。
| 状态码 | 原因 |
|---|---|
200 |
Success - with the result in the response content |
204 |
Success - with no further content |
400 |
Bad request - see response format below |
401 |
Not authorized - see Authentication |
404 |
Not found - a resource wasn’t found |
409 |
Version mismatch - see POST /flows |
500 |
Server Error - something went wrong on the server |
对于400响应码,响应体将是一个包含以下字段的JSON对象:
| 字段 | 描述 |
|---|---|
code |
The error code |
message |
The description of the error |
{
code: "module_already_loaded",
message: "Module already loaded"
}
| 代码 | 描述 |
|---|---|
unexpected_error |
An unexpected error occurred |
invalid_request |
The request contains invalid parameters |
settings_unavailable |
The storage system does not support changing settings |
module_already_loaded |
The requested module is already loaded |
type_in_use |
The request is attempting to remove/disable a node type that is currently being used |
invalid_api_version |
The request specified an invalid api version in the Node-RED-API-Version header |
Node-RED: 面向事件驱动应用的低代码编程平台。
版权所有 OpenJS基金会 及 Node-RED 贡献者。保留所有权利。OpenJS基金会 拥有注册商标并使用商标。有关 OpenJS基金会 的商标列表,请参阅我们的 商标政策 和 商标列表。未在 OpenJS基金会商标列表 中标注的商标™或注册®商标归其各自持有人所有。使用这些商标并不意味着与它们有任何关联或获得其认可。
The OpenJS Foundation | 使用条款 | 隐私政策 | OpenJS基金会章程 | 商标政策 | 商标列表 | Cookie政策