Fix a bug with the status code when building

Jenkins returns 201 when the build has been enqueued.