helium / blockchain-core

Apache License 2.0
213 stars 85 forks source link

Fix 404 copypasta error; add explicit 416 error #1309

Closed jadeallenx closed 2 years ago

jadeallenx commented 2 years ago

Problem to solve: A few weeks ago while doing some testing, I noticed the 416 HTTP status (an invalid byte range request) was not explicitly handled. It should be.

Solution: Add a clause for a 416 status. Fix a copypasta error for 404 status results too.