2

I want to make very simple application in Python which:

  1. When REST calls PUT/DEL/GET are recived than response code is 200
  2. When REST call create is recived than response code is 201

I tried with sockets but I don't know how to send 201.

1 Answer 1

2

Use an existing web framework such as Flask or Django. Doing this by yourself with sockets is way too much work, it's not worth it.

Sign up to request clarification or add additional context in comments.

1 Comment

+1 for Flask. Django is unnecessarily high level for these kinds of simple applications.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.