Skip to content

Commit 334bc1d

Browse files
committed
Changing status code to 204 from 400. RE:natcap#1580
1 parent 8277d5f commit 334bc1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codesigning/gcp-cloudfunc/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def main(request):
154154
response = requests.head(f'{url}.signature')
155155
if response.status_code >= 400:
156156
logging.info('Rejecting URL because it has already been signed.')
157-
return jsonify('File has already been signed'), 400
157+
return jsonify('File has already been signed'), 204
158158

159159
with get_lock():
160160
# Since the file has not already been signed, add the file to the

0 commit comments

Comments
 (0)