When is RESOURCE NOT FOUND (404) appropiate?

I have been having long discussion with colleagues about whether responing with a 404 or 400 (BAD REQUEST) given different bad parts of the url. Suppose we have a endpoint that provides products. But the products are segmented and depend on things l...
more »

2017-05-10 14:05 (1) Answers

Incomplete Node HTTP.Response

My application builds a custom array of integers that need to be concatenated in order to create a dynamic request for economic data. Once my variable options gets created, I push it through an http request and try to parse the response, where I'm g...
more »

2017-04-03 00:04 (2) Answers

Mock a Wreq Response

I want to manually create a Response in order to mock a web server, similar to this blog post. However, the Network.Wreq library that I'm using doesn't reveal the constructor for Response. How do I create a Response manually? ...
more »

2016-12-05 14:12 (1) Answers

Symfony no expire settings in response

I have a website where I am working with Responses. But I didn't set any expires or maxage settings to the responses. My website gets slower and slower every week so I cleared caches. The clearing process took some minutes (!) but after that, the web...
more »

2016-10-24 12:10 (0) Answers