Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

NoRecordsMatchException should be served with HTTP code 200 #10

Merged
merged 1 commit into from Apr 22, 2017
Merged

NoRecordsMatchException should be served with HTTP code 200 #10

merged 1 commit into from Apr 22, 2017

Conversation

olivier1980
Copy link
Contributor

The OAI standard states:
-OAI-PMH errors are distinguished from HTTP Status-Codes
-OAI-PMH repositories may employ HTTP Status-Codes in addition to "200 OK"

This PR makes sure the NoRecordsMatchException error is served with a Status 200 response, as the current 400 status does not reflect the nature of the OAI response.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 79.57% when pulling 912990f on olivier1980:statuscode into 476b637 on picturae:master.

@vbuch vbuch merged commit 9d1e6c9 into vitec-memorix:master Apr 22, 2017
@tjvdberg
Copy link

tjvdberg commented Jun 7, 2018

Would it be possible to tag this commit? Tnx is advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants