mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-27 19:26:29 +00:00
Explicitly mention 400 in response
This commit is contained in:
parent
058c2c7e3a
commit
5d9b6a8a76
@ -703,7 +703,7 @@ If the service you're calling supports returning response data, you can retrieve
|
||||
:::note
|
||||
Some services return no data, others optionally return response data, and some always return response data.
|
||||
|
||||
If you don't use `return_response` when calling a service that must return data, the API will return an error. Similarly, you will receive an error if you use `return_response` when calling a service that doesn't return any data.
|
||||
If you don't use `return_response` when calling a service that must return data, the API will return a 400. Similarly, you will receive a 400 if you use `return_response` when calling a service that doesn't return any data.
|
||||
:::
|
||||
|
||||
Sample `curl` commands:
|
||||
|
Loading…
x
Reference in New Issue
Block a user