Skip to content
Sarvesh kumar edited this page May 23, 2021 · 6 revisions

Welcome to the # React Sending HttpRequest wiki!

  1. React Http Request

  2. API integration in React

Sending HTTP Request

API URL :

https://swapi.dev/

https://swapi.dev/api/films/

Fetching api in javascript

https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

async await in javascript

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Async_await

list http status code

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

200 OK

301 Moved Permanently

302 Found

303 See Other

403 Forbidden

404 Not Found

451 Unavailable for Legal Reasons

1xx informational response – the request was received, continuing process

2xx successful – the request was successfully received, understood, and accepted

3xx redirection – further action needs to be taken in order to complete the request

4xx client error – the request contains bad syntax or cannot be fulfilled

5xx server error – the server failed to fulfil an apparently valid request

Clone this wiki locally