Dateien hochladen nach „REST“

update i2c function for file unlinks and change error code for failed tests to 543 after discussing it with other teams
main
Thomas Hassenstein 2023-06-12 16:45:37 +02:00
parent 5dcafb6498
commit c931efc2b5
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def initialize_generator():
initialized = True initialized = True
return create_response(200, 'Successful operation; random number generator is ready and random numbers can be requested') return create_response(200, 'Successful operation; random number generator is ready and random numbers can be requested')
if result == 400: if result == 400:
return create_response(500, 'Tests failed, try again') return create_response(543, 'Tests failed, try again')
if result is False: if result is False:
return create_response(500, 'Unable to generate random numbers. Restart/Reset System') return create_response(500, 'Unable to generate random numbers. Restart/Reset System')
else: else: