Browse Source

docs: route errors correction

Sv443 4 months ago
parent
commit
354253030b
1 changed files with 2 additions and 3 deletions
  1. 2 3
      www/docs/routes/README.md

+ 2 - 3
www/docs/routes/README.md

@@ -25,9 +25,8 @@ To know how many requests you have sent and are still able to send, refer to the
 <br>
 
 ## Errors
-All routes always return the properties `error` and `matches`.  
-<!-- TODO: make responses with matches = 0 have error = false -->
-They can be used to determine whether a response has succeeded (error = false, matches > 0), is errored (error = true, matches = null) or just didn't yield any results (error = true, matches = 0).  
+All routes always return the properties `error` and `matches`, no matter what.  
+They can be used to determine whether a response has succeeded (error = false, matches > 0), just didn't yield any results (error = false, matches = 0) or is errored (error = true, matches = null).  
   
 Additionally, you can use the [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) to find out whether a request has succeeded or not.