Complete the code to return a successful HTTP status code.
return Response(status=[1])
The status code 200 means the request was successful.
Complete the code to return a 'Not Found' status code.
return Response(status=[1])
The status code 404 means the requested resource was not found.
Fix the error in the code to return a server error status code.
return Response(status=[1])
The status code 500 means an internal server error occurred.
Fill both blanks to return a redirect status code and the new location.
return Response(status=[1], headers={'Location': [2])
302 is a redirect status code and 'Location' header tells where to go.
Fill all three blanks to return a JSON response with a success status and message.
return Response(json=[1], status=[2], headers=[3])
The JSON contains the message, status 200 means success, and header sets content type.
