javascript fetch get body from 400 code example
Example: http request javascript fetch
fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));
fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));