modules: Replace any http::CREATED with http::OK. (5a06c006)

This commit is contained in:
Jason Volk 2023-04-25 15:06:10 -07:00
parent 44a4f33e45
commit 55f332c821
4 changed files with 6 additions and 6 deletions

View File

@ -60,7 +60,7 @@ ircd::m::groups::handle_post(client &client,
return resource::response
{
client, http::CREATED, json::members
client, http::OK, json::members
{
{ "group_id", group_id }
},

View File

@ -103,7 +103,7 @@ post__createroom(client &client,
top.~object();
return m::resource::response
{
client, http::CREATED, json::object
client, http::OK, json::object
{
out.completed()
}

View File

@ -148,7 +148,7 @@ try
// Send response to user
return m::resource::response
{
client, http::CREATED, response
client, http::OK, response
};
}
catch(const m::INVALID_MXID &e)
@ -191,7 +191,7 @@ post__register_guest(client &client,
return m::resource::response
{
client, http::CREATED,
client, http::OK,
{
{ "user_id", user_id },
{ "home_server", my_host() },
@ -243,7 +243,7 @@ try
// Send response to user
return m::resource::response
{
client, http::CREATED, response
client, http::OK, response
};
}
catch(const m::INVALID_MXID &e)

View File

@ -96,7 +96,7 @@ post__upload(client &client,
return m::resource::response
{
client, http::CREATED, json::members
client, http::OK, json::members
{
{ "content_uri", content_uri }
}