This PR changes /rest/headers response to 404 when the given block hash does not exists. Before the response would be an empty array of headers.
Also add a test for /rest/block/ which already returns the 404 error.
Note, will add release note if accepted.