Skip to content

Commit

Permalink
fix HTTP response code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Jan 8, 2025
1 parent 5fd6912 commit 0269704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycsw/ogc/api/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ def manage_collection_item(self, headers_, action='create', item=None, data=None
try:
_ = self.repository.query_ids([record.identifier])[0]
return self.get_exception(
404, headers_, 'InvalidParameterValue', 'item exists')
400, headers_, 'InvalidParameterValue', 'item exists')
except Exception:
LOGGER.debug('Identifier does not exist')

Expand Down

0 comments on commit 0269704

Please sign in to comment.