Skip to content

Commit 2540e18

Browse files
gabrielmpintoozwaldorf
authored andcommitted
docs: Update code to status for HttpResponse
1 parent d2036a0 commit 2540e18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dts/lib.fleek.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ declare namespace Fleek {
8484

8585
/** HTTP Response object. When returned from a function that's requested over http, it will be used to
8686
* modify the http response. Otherwise, for non-http requests, the raw json object will be sent.
87-
* @property {Number} code - Status code to use. Must be an unsigned integer that fits inside a u16.
87+
* @property {Number} status - Status code to use. Must be an unsigned integer that fits inside a u16.
8888
* @property {Headers} headers - Array or map of header key values
8989
* @property {any} body - Body to send to client
9090
* @category Fleek Node API
9191
*/
9292
type HttpResponse = {
93-
code: number;
93+
status: number;
9494
headers: HttpResponseHeaders;
9595
body: any;
9696
};

0 commit comments

Comments
 (0)