Closed KlausIllmayer closed 1 year ago
Works as it does not give back anymore a 500 status code. Still I like to re-open this issue, as in my opinion when there are no results it should give back a 404 status code. Currently, it gives back an empty error: []
This does not have any priority, but it sounds to me more consistent. @tparkola if you not agree, please close the issue.
The bahavior in my opinion is OK because the history is empty. If we would say 404 then it could be confusing, e.g. one would interpret that there is no history (at all) of this actor in the system. In addition class 400 is about errors (client errors), which is not true in this case, i.e. the request is correct, we just don't have data, so empty list is returned. Hence, I close the issue.
Calling
/api/actors/{id}/history
delivers an error 500, e.g. try out https://marketplace-api.sshopencloud.eu/api/actors/2235/history Not sure, if it is because this actor does not have a history or if it is a general issue, at least it should be no 500 error returned. In the logfiles it says:This endpoint could become necessary for the actor merging workflow.