Maciej Laskowski
Maciej Laskowski

Reputation: 717

Recive REST and Response http codes in Python

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.

Upvotes: 2

Views: 92

Answers (1)

Ned Batchelder
Ned Batchelder

Reputation: 375982

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.

Upvotes: 2

Related Questions