Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
Is response.ok true for any 2xx HTTP status?

Is response.ok true for any 2xx HTTP status? If so, why? Shouldn't it be only for a 200 status code?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The fetch specs state, that a response returns true if the response status has an OK status.

An ok status is a status in the range 200 to 299, inclusive.

The reason for this seems to, that a 2xx status yields a successfull response, which is pretty common for 201, 206 etc. in the RESTful world.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!